package kr.hkit.powerjava.chaper05.work;

public class work19 {
	public static void main(String[] args) {
	
		final double distance = 1.5e8;
		final double speed = 3.0e5;
		int min;
		int sec;
		
		min = (int) (distance/speed) / 60;
		sec = (int) (distance/speed) % 60;
		
		System.out.println("빛이 태양에서 지구에 도착하는 시간은 " + min+ "분" + sec + "초 입니다.");	
	}
}
